package com.heart.sell.util;

import org.springframework.stereotype.Component;

import java.util.Random;

/**
 * @author Luo Zhen
 * @create 2019-04-22 16:28
 */
@Component
public class UuidUtil {

    public synchronized String getRandomUUID() {
        Random random = new Random();
        long currentTime = System.currentTimeMillis();

        Integer num = random.nextInt(900000) + 100000;
        return currentTime + "" + num;
    }

}
